
import Relay from "react-relay";
export default class getProMaterialDetail extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getProMaterialDetail }`;
    }

    getVariables() {
        return {
            argsInput: {
                pdId: this.props.pdId,
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on getProMaterialDetailPayload{
            responseData {
                errorCode
                value
                totalResult
                id
                proMaterialDetailModels{
                  specification
                  materialDetailId
                  count
                  pdId
                  consume
                  remark
                  dosage
                  prickle
                  colour
                  needCount
                  part
                  name
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getProMaterialDetailPayload  {
                    responseData {
                        errorCode
                        value
                        totalResult
                        id
                        proMaterialDetailModels{
                          specification
                          materialDetailId
                          count
                          pdId
                          consume
                          remark
                          dosage
                          prickle
                          colour
                          needCount
                          part
                          name
                        }
                    }
                 }
            `]
        }];
    }

}
